import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-09-04
 * Time: 23:08
 * To BE A Better Person-2020-3-2
 */
//字符流读取数据
public class TestDemo5 {
    public static void main(String[] args) throws IOException {
        Reader reader=new FileReader("test2.txt");
        char[] c=new char[1024];
        int len=reader.read(c);
        for (int i = 0; i < len; i++) {
            System.out.print(c[i]);
        }
    }
}
